package com.xj.common.bussiness.billOfDocumentImg.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE;

/**
 * <p>
 * 单据（合同、发票、设备档案）的照片和编号表
 * </p>
 *
 * @author Hmemb
 * @since 2018-01-27
 */
@Data
@TableName("tb_bill_of_document_img")
public class TbBillOfDocumentImg extends Model<TbBillOfDocumentImg> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 采购合同照片
     */
	@TableField(value="contract_for_buy_img")
	private String contractForBuyImg;
	/**
	 * 设备出厂编号（大架子号）
	 */
	@TableField(value="big_shelf_num")
	private String bigShelfNum;
    /**
     * 采购发票照片
     */
	@TableField(value="invoice_for_buy_img")
	private String invoiceForBuyImg;
    /**
     * 采购单位代码/个人身份证号
     */
	@TableField(value="identity_num")
	private String identityNum;
    /**
     * 档案证书照片
     */
	@TableField(value="archives_img")
	private String archivesImg;

	/**
	 * 合同的第二张照片
	 */
	@TableField(value="contract_sec_img")
	private String contractSecImg;

	/**
	 * 创建时间
	 */
	@TableField(value="create_date")
	@DateTimeFormat(iso = DATE)
	private Date createDate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getContractForBuyImg() {
		return contractForBuyImg;
	}

	public String getBigShelfNum() {
		return bigShelfNum;
	}

	public void setBigShelfNum(String bigShelfNum) {
		this.bigShelfNum = bigShelfNum;
	}

	public void setContractForBuyImg(String contractForBuyImg) {
		this.contractForBuyImg = contractForBuyImg;
	}

	public String getInvoiceForBuyImg() {
		return invoiceForBuyImg;
	}

	public void setInvoiceForBuyImg(String invoiceForBuyImg) {
		this.invoiceForBuyImg = invoiceForBuyImg;
	}

	public String getIdentityNum() {
		return identityNum;
	}

	public void setIdentityNum(String identityNum) {
		this.identityNum = identityNum;
	}

	public String getArchivesImg() {
		return archivesImg;
	}

	public void setArchivesImg(String archivesImg) {
		this.archivesImg = archivesImg;
	}

	public String getContractSecImg() {
		return contractSecImg;
	}

	public void setContractSecImg(String contractSecImg) {
		this.contractSecImg = contractSecImg;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
